package com.weixing.mall.provider.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.weixing.mall.provider.model.domain.AgentCommission;
import com.weixing.mall.provider.model.query.AgentCommissionQuery;
import com.weixing.mall.provider.model.vo.AgentCommissionVo;

import java.math.BigDecimal;

/**
 * <p>
 * 代理商模块-代理商佣金表 服务类
 * </p>
 *
 * @author Small
 * @since 2019-11-18
 */
public interface IAgentCommissionService extends IService<AgentCommission> {

    IPage<AgentCommissionVo> selectListOfPage(Page page, AgentCommissionQuery agentCommissionQuery);

    AgentCommissionVo commisionDetail(long id);

    IPage<AgentCommissionVo> selectAgentCommsOfPage(Page initMpPage, long agentId);

    BigDecimal countComm(long agentId, String month);


    AgentCommission findByOrderIdAndAgentId(Long orderId, Long agentId);
}
